package com.mobilezu.mobile.pushserver.util;

import java.util.List;

@SuppressWarnings("rawtypes")
public class Config {

	public static String getString(String key) {
		return ConfigManager.getInstance().getConfig().getString(key);
	}

	public static String getString(String key, String def) {
		return ConfigManager.getInstance().getConfig().getString(key, def);
	}

	public static int getInt(String key) {
		return ConfigManager.getInstance().getConfig().getInt(key);
	}

	public static int getInt(String key, int def) {
		return ConfigManager.getInstance().getConfig().getInt(key, def);
	}

	public static long getLong(String key) {
		return ConfigManager.getInstance().getConfig().getLong(key);
	}

	public static long getLong(String key, long def) {
		return ConfigManager.getInstance().getConfig().getLong(key, def);
	}

	public static float getFloat(String key) {
		return ConfigManager.getInstance().getConfig().getFloat(key);
	}

	public static float getFloat(String key, float def) {
		return ConfigManager.getInstance().getConfig().getFloat(key, def);
	}

	public static double getDouble(String key) {
		return ConfigManager.getInstance().getConfig().getDouble(key);
	}

	public static double getDouble(String key, double def) {
		return ConfigManager.getInstance().getConfig().getDouble(key, def);
	}

	public static boolean getBoolean(String key) {
		return ConfigManager.getInstance().getConfig().getBoolean(key);
	}

	public static boolean getBoolean(String key, boolean def) {
		return ConfigManager.getInstance().getConfig().getBoolean(key, def);
	}

	public static String[] getStringArray(String key) {
		return ConfigManager.getInstance().getConfig().getStringArray(key);
	}

	public static List getList(String key) {
		return ConfigManager.getInstance().getConfig().getList(key);
	}

	public static List getList(String key, List def) {
		return ConfigManager.getInstance().getConfig().getList(key, def);
	}

	public static void setProperty(String key, Object value) {
		ConfigManager.getInstance().getConfig().setProperty(key, value);
	}

}
